BIN=iotserver
CLIENT=client
#MYSQL_DEMO=mysql_demo
CFLAG = -o

IOTSERVER_SRC= main.c \
			   mysql_util.c \
			   log_util.c \
			   list.c
all:
	${CC} -g -o ${BIN} -I/usr/include/mysql/ ${IOTSERVER_SRC} -L/usr/lib64/mysql/ -lmysqlclient -lz
	${CC} client.c ${CFLAG} ${CLIENT}
	#${CC} -g -o ${MYSQL_DEMO} -I/usr/include/mysql/ mysql_demo.c mysql_util.c -L/usr/lib64/mysql/ -lmysqlclient -lz

clean:
	rm -rvf *.o ${BIN} ${CLIENT} ${MYSQL_DEMO}
